package com.xzc.pojo.response;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author 熊志聪
 * @Classname Task
 * @Description 任务:父任务的总消耗就是子任务总消耗的和 使用子任务来进行统计，去除父任务
 * @Date 2021/12/12 23:04
 */
@Data
@ToString
public class Task implements Serializable {
    private static final long serialVersionUID = 5447758027058382041L;
    private String id;
    private String parent;
    private Integer project;
    private String module;

    private String story;
    private String storyVersion;
    private String fromBug;
    private String name;
    private String type;

    private String pri;
    /**
     * 预计
     */
    private String estimate;
    /**
     * 总计消耗
     */
    private BigDecimal consumed;
    /**
     * 剩余
     */
    private String left;
    private String deadline;
    private String status;
    private String color;
    private String mailto;
//    private String desc;
    private String openedBy;
    private String openedDate;
    /**
     * 指派给
     */
    private String assignedTo;
    private String assignedDate;
    private String estStarted;
    private String realStarted;
    /**
     * 由谁完成：当该字段不存在时使用assignedTo
     */
    private String finishedBy;
    private String finishedDate;
    private String finishedList;
    private String canceledBy;
    private String canceledDate;
    private String closedDate;
    private String closedReason;
    private String lastEditedBy;
    private String lastEditedDate;
    private String deleted;
    /**
     * 需求id->项目id
     */
    private String storyID;
    private String storyTitle;
    private List<MemberConsumed> team;
    private String product;
    private String branch;
    private String latestStoryVersion;
    private String storyStatus;
    private String assignedToRealName;
    private String delay;
    private String needConfirm;
    private String productType;
    private Integer progress;
    private Map<String,Task> children;
}
